package config

import "github.com/gofiber/fiber/v2"

type ConfigsInitializer func(app *fiber.App)

var configsInitializers []ConfigsInitializer

func RegisterConfigsInitializer(initializer ConfigsInitializer) {
	configsInitializers = append(configsInitializers, initializer)
}

func InitConfigs(app *fiber.App) {
	for _, initializer := range configsInitializers {
		initializer(app)
	}
}
